package com.algo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

@Component
@ComponentScan(basePackages = "com.algo.service")
@EnableAspectJAutoProxy
public class MainConfigOfAOP {

    @Bean
    public LogAspect logAspect() {
        return new LogAspect();
    }

}
